package com.yuanlrc.base.service.common;

import com.yuanlrc.base.dao.common.HomeUserDao;
import com.yuanlrc.base.entity.common.HomeUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HomeUserService {
    @Autowired
    private HomeUserDao homeUserDao;

    /**
     * 根据账号查询
     * @param userid
     * @return
     */
    public HomeUser findByUserid(String userid){
        return homeUserDao.findByUserid(userid);
    }

    public HomeUser save(HomeUser homeUser){
        return homeUserDao.save(homeUser);
    }
}
